const common = require('./webpack.common.js');
const webpack = require('webpack');
const cfg = require('./config');
const _ = require('lodash');

common.entry.vendor = _.flatten([
    cfg.bin.lib.files,
    cfg.bin.lib.debug || []
]);

common.plugins.push(new webpack.NoErrorsPlugin());

module.exports = Object.assign({
    debug: true,
    devtool: 'cheap-module-inline-source-map'
}, common);
